/*
 *  This file is part of the SIRIUS libraries for analyzing MS and MS/MS data
 *
 *  Copyright (C) 2024 Bright Giant GmbH
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along with SIRIUS.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 *  https://openapi-generator.tech
 *  Do not edit the class manually.
 */


package io.sirius.ms.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * Specifies which tools have been executed for this feature. Can be used to estimate which results can be expected. Null if it was not requested und non-null otherwise.
 */
@JsonPropertyOrder({
  ComputedSubtools.JSON_PROPERTY_LIBRARY_SEARCH,
  ComputedSubtools.JSON_PROPERTY_FORMULA_SEARCH,
  ComputedSubtools.JSON_PROPERTY_ZODIAC,
  ComputedSubtools.JSON_PROPERTY_FINGERPRINT,
  ComputedSubtools.JSON_PROPERTY_CANOPUS,
  ComputedSubtools.JSON_PROPERTY_STRUCTURE_SEARCH,
  ComputedSubtools.JSON_PROPERTY_DE_NOVO_SEARCH
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0")
public class ComputedSubtools {
  public static final String JSON_PROPERTY_LIBRARY_SEARCH = "librarySearch";
  @jakarta.annotation.Nullable
  private Boolean librarySearch;

  public static final String JSON_PROPERTY_FORMULA_SEARCH = "formulaSearch";
  @jakarta.annotation.Nullable
  private Boolean formulaSearch;

  public static final String JSON_PROPERTY_ZODIAC = "zodiac";
  @jakarta.annotation.Nullable
  private Boolean zodiac;

  public static final String JSON_PROPERTY_FINGERPRINT = "fingerprint";
  @jakarta.annotation.Nullable
  private Boolean fingerprint;

  public static final String JSON_PROPERTY_CANOPUS = "canopus";
  @jakarta.annotation.Nullable
  private Boolean canopus;

  public static final String JSON_PROPERTY_STRUCTURE_SEARCH = "structureSearch";
  @jakarta.annotation.Nullable
  private Boolean structureSearch;

  public static final String JSON_PROPERTY_DE_NOVO_SEARCH = "deNovoSearch";
  @jakarta.annotation.Nullable
  private Boolean deNovoSearch;

  public ComputedSubtools() {
  }

  public ComputedSubtools librarySearch(@jakarta.annotation.Nullable Boolean librarySearch) {
    
    this.librarySearch = librarySearch;
    return this;
  }

  /**
   * Get librarySearch
   * @return librarySearch
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LIBRARY_SEARCH)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isLibrarySearch() {
    return librarySearch;
  }


  @JsonProperty(JSON_PROPERTY_LIBRARY_SEARCH)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLibrarySearch(@jakarta.annotation.Nullable Boolean librarySearch) {
    this.librarySearch = librarySearch;
  }

  public ComputedSubtools formulaSearch(@jakarta.annotation.Nullable Boolean formulaSearch) {
    
    this.formulaSearch = formulaSearch;
    return this;
  }

  /**
   * Get formulaSearch
   * @return formulaSearch
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_FORMULA_SEARCH)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isFormulaSearch() {
    return formulaSearch;
  }


  @JsonProperty(JSON_PROPERTY_FORMULA_SEARCH)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setFormulaSearch(@jakarta.annotation.Nullable Boolean formulaSearch) {
    this.formulaSearch = formulaSearch;
  }

  public ComputedSubtools zodiac(@jakarta.annotation.Nullable Boolean zodiac) {
    
    this.zodiac = zodiac;
    return this;
  }

  /**
   * Get zodiac
   * @return zodiac
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_ZODIAC)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isZodiac() {
    return zodiac;
  }


  @JsonProperty(JSON_PROPERTY_ZODIAC)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setZodiac(@jakarta.annotation.Nullable Boolean zodiac) {
    this.zodiac = zodiac;
  }

  public ComputedSubtools fingerprint(@jakarta.annotation.Nullable Boolean fingerprint) {
    
    this.fingerprint = fingerprint;
    return this;
  }

  /**
   * Get fingerprint
   * @return fingerprint
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_FINGERPRINT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isFingerprint() {
    return fingerprint;
  }


  @JsonProperty(JSON_PROPERTY_FINGERPRINT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setFingerprint(@jakarta.annotation.Nullable Boolean fingerprint) {
    this.fingerprint = fingerprint;
  }

  public ComputedSubtools canopus(@jakarta.annotation.Nullable Boolean canopus) {
    
    this.canopus = canopus;
    return this;
  }

  /**
   * Get canopus
   * @return canopus
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_CANOPUS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isCanopus() {
    return canopus;
  }


  @JsonProperty(JSON_PROPERTY_CANOPUS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCanopus(@jakarta.annotation.Nullable Boolean canopus) {
    this.canopus = canopus;
  }

  public ComputedSubtools structureSearch(@jakarta.annotation.Nullable Boolean structureSearch) {
    
    this.structureSearch = structureSearch;
    return this;
  }

  /**
   * Get structureSearch
   * @return structureSearch
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_STRUCTURE_SEARCH)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isStructureSearch() {
    return structureSearch;
  }


  @JsonProperty(JSON_PROPERTY_STRUCTURE_SEARCH)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setStructureSearch(@jakarta.annotation.Nullable Boolean structureSearch) {
    this.structureSearch = structureSearch;
  }

  public ComputedSubtools deNovoSearch(@jakarta.annotation.Nullable Boolean deNovoSearch) {
    
    this.deNovoSearch = deNovoSearch;
    return this;
  }

  /**
   * Get deNovoSearch
   * @return deNovoSearch
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_DE_NOVO_SEARCH)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isDeNovoSearch() {
    return deNovoSearch;
  }


  @JsonProperty(JSON_PROPERTY_DE_NOVO_SEARCH)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDeNovoSearch(@jakarta.annotation.Nullable Boolean deNovoSearch) {
    this.deNovoSearch = deNovoSearch;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ComputedSubtools computedSubtools = (ComputedSubtools) o;
    return Objects.equals(this.librarySearch, computedSubtools.librarySearch) &&
        Objects.equals(this.formulaSearch, computedSubtools.formulaSearch) &&
        Objects.equals(this.zodiac, computedSubtools.zodiac) &&
        Objects.equals(this.fingerprint, computedSubtools.fingerprint) &&
        Objects.equals(this.canopus, computedSubtools.canopus) &&
        Objects.equals(this.structureSearch, computedSubtools.structureSearch) &&
        Objects.equals(this.deNovoSearch, computedSubtools.deNovoSearch);
  }

  @Override
  public int hashCode() {
    return Objects.hash(librarySearch, formulaSearch, zodiac, fingerprint, canopus, structureSearch, deNovoSearch);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ComputedSubtools {\n");
    sb.append("    librarySearch: ").append(toIndentedString(librarySearch)).append("\n");
    sb.append("    formulaSearch: ").append(toIndentedString(formulaSearch)).append("\n");
    sb.append("    zodiac: ").append(toIndentedString(zodiac)).append("\n");
    sb.append("    fingerprint: ").append(toIndentedString(fingerprint)).append("\n");
    sb.append("    canopus: ").append(toIndentedString(canopus)).append("\n");
    sb.append("    structureSearch: ").append(toIndentedString(structureSearch)).append("\n");
    sb.append("    deNovoSearch: ").append(toIndentedString(deNovoSearch)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

